import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

export const storeRoutes: RouteRecordRaw[] = [
  {
    path: '/store',
    component: Layout,
    redirect: '/store/companyInfo',
    meta: { title: '门店管理', icon: '' },
    children: [
      {
        path: 'companyInfo',
        component: () => import('@/views/store/companyInfo.vue'),
        name: 'CompanyInfo',
        meta: {
          title: '企业信息',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
      {
        path: 'storeInfo',
        component: () => import('@/views/store/storeInfo.vue'),
        name: 'StoreInfo',
        meta: {
          title: '门店信息',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
      {
        path: 'storeTools',
        component: () => import('@/views/store/storeTools.vue'),
        name: 'StoreTools',
        meta: {
          title: '门店设施',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
      {
        path: 'accountManage',
        component: () => import('@/views/store/accountManage.vue'),
        name: 'AccountManage',
        meta: {
          title: '账号管理',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
    ],
  },
]
